﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Inspection.InspectionManage
{
    public class GetInspectionStandardDescInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskCode { get; set; }
        /// <summary>
        /// 一级异常ID
        /// </summary>
        public Guid? InspectionTypeDescId { get; set; }
        /// <summary>
        /// 二级异常ID
        /// </summary>
        public Guid? InspectionItemInfoId { get; set; }
        /// <summary>
        /// 异常等级ID
        /// </summary>
        public Guid? InspectionSeverityDescId { get; set; }
        /// <summary>
        /// 提报人ID
        /// </summary>
        public int? SubmitterId { get; set; }
        /// <summary>
        /// 处理人ID
        /// </summary>
        public int? HandlerId { get; set; }
        /// <summary>
        /// 查看人ID
        /// </summary>
        public int UserId { get; set; }
        public void Normalize()

        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
